package org.kinglone.back.loginLog.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 登录日志实体类
 * @author yejinlong
 * 2017年7月25日
 * @version 1.0
 */
@Entity
@Table(name="loginlog")
public class LoginLog implements Serializable{

	private static final long serialVersionUID = 1L;

	@Id @GenericGenerator(name = "generator", strategy = "uuid.hex")
	@GeneratedValue(generator = "generator")
	@Column(name="sysid", unique = true, nullable = false, length = 32)
	private String sysid;
	//用户名
	@Column(name="username",length=32)
	private String username;
	
	//远程登录ip 路由器外网ip
	@Column(name="remoteIP",length=20)
	private String remoteIP;
	
	//客户端ip内网ip
	@Column(name="clientIP",length=20)
	private String clientIP;
	
	//登录时间
	@Column(name="loginTime",nullable=false,length=20)
	private String loginTime;
	
	//登录状态 
	@Column(name="status",nullable=false,length=20)
	private String status;

	public LoginLog() {
	}

	public LoginLog(String sysid, String username, String remoteIP,
			String clientIP, String loginTime, String status) {
		super();
		this.sysid = sysid;
		this.username = username;
		this.remoteIP = remoteIP;
		this.clientIP = clientIP;
		this.loginTime = loginTime;
		this.status = status;
	}


	public String getSysid() {
		return sysid;
	}

	public void setSysid(String sysid) {
		this.sysid = sysid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getRemoteIP() {
		return remoteIP;
	}

	public void setRemoteIP(String remoteIP) {
		this.remoteIP = remoteIP;
	}

	public String getClientIP() {
		return clientIP;
	}

	public void setClientIP(String clientIP) {
		this.clientIP = clientIP;
	}

	public String getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(String loginTime) {
		this.loginTime = loginTime;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	
	
	
	
}
